package com.swm.julie.rest.sausage.index.field;

public enum Field {
	/**
	 * column set : 
	 * company
	 * itemName
	 * image
	 * url
	 * item	
	 * discountRatio
	 * price
	 * shopName
	 * shopPhone
	 * shopLocate
	 * buyStart
	 * buyEnd
	 * useStart
	 * useEnd
	 **/
	company,
	itemName,
	image,
	url,
	item,
	discountRatio,
	price,
	shopName,
	shopPhone,
	shopLocate,
	locate,
	buyStart,
	buyEnd,
	useStart,
	useEnd;
	
	/**
	 * Return existence of the value
	 * @param field
	 * @return
	 */
	public static boolean contains(String field)
	{
		for(Field f : Field.values())
		{
			if(f.name().equalsIgnoreCase(field)) return true;
		}
		
		return false;
	}
}
